<template>
  <div class="xtx-header">
      <div class="container">
          <h1 class="logo"><RouterLink to="/">小兔鲜</RouterLink></h1>
          <h3 class="sub"><slot /></h3>
          <RouterLink class="entry" to="/">
              <span>进入网站首页</span>
              <i class="iconfont icon-angle-right"></i>
              <i class="iconfont icon-angle-right"></i>
          </RouterLink>
      </div>
  </div>
</template>

<script>
export default {
  name: 'XtxHeader'
}
</script>

<style scoped lang="less">
.xtx-header {
    border-bottom: 1px solid #e4e4e4;
    .container {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        .logo {
            width: 200px;
            text-indent: -9999px;
        a {
           display: block;
           width: 100%;
           height: 132px;
           background: url(../../../assets/images/logo.png) no-repeat;
           background-position: center 18px ;
           background-size: contain;
       }
        }
        .sub {
            flex: 1;
            color: #666;
            font-weight: normal;
            font-size: 24px;
            margin-bottom: 38px;
            // margin-top: 30px;
            margin-left: 20px;
        }
        .entry {
            width: 120px;
            margin-bottom: 38px;
            color: #333;
             font-size: 16px;
            span {
                padding-right: 5px;
            }
            i {
                font-size: 14px;
                color: @xtxColor;
                letter-spacing: -5px;
            }
        }
    }
}
</style>
